use std::io;
use std::result::Result;

/// IoConsumer trait
///
/// author noear
/// since 2.0
pub trait IoConsumer<T> {
    fn accept(&self, t: T) -> Result<(), io::Error>;
}